package com.cea.papyrus.diagram.activity.figure;

import com.cea.papyrus.core.figures.LabelFigure;
import com.cea.papyrus.core.figures.TaggedElementFigure;
import com.cea.papyrus.diagraminterchange2.di2.GraphElement;

public class ObjectNodeFigure extends TaggedElementFigure{

	public LabelFigure labelState;
	
	public ObjectNodeFigure(String keyword) {
		super(keyword);
		labelState = new LabelFigure();
		add(labelState);
	}

	/* (non-Javadoc)
	 * @see com.cea.papyrus.core.common.figures.NodeFigure#refreshColors(com.cea.papyrus.core.diagraminterchange2.di2.GraphElement)
	 */
	@Override
	public void refreshColors(GraphElement graphElement) {
		super.refreshColors(graphElement);
		labelState.setBackgroundColor(getBackgroundColor());
		labelState.setFontColor(getFontColor());
		labelState.setBorderColor(getBorderColor());
		labelState.setForeGroundColor(getForeGroundColor());
	}

}
